﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GiaoDien_Admin2.Master" AutoEventWireup="true" CodeBehind="QuanLyTaiKhoan.aspx.cs" Inherits="BT_web__nhom06.QuanLyTaiKhoan" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="title" style="text-align:center">Quản Lý Tài Khoản</div>
    <div style="margin-left: 450px"><a href="Them_User.aspx">THÊM</a></div>
    <div class="section_box">
        <asp:GridView ID="gvTaiKhoan" runat="server" AutoGenerateColumns="False" CellPadding="4" EnableModelValidation="True" ForeColor="#333333" GridLines="None" Width="426px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="UserName">
                    <ItemTemplate>
                        <a href='ChiTiet_User.aspx?Username=<%#Eval("Username")%>'><%#Eval("UserName") %></a>
                    </ItemTemplate>
                </asp:TemplateField>

                <asp:BoundField DataField="MaHS" HeaderText="Mã học sinh" />
                
               <asp:TemplateField HeaderText="Bị khóa">
                    <ItemTemplate>
                        <%#((bool)Eval("Locked")==true?"Khóa":"Không Khóa")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Quyen" HeaderText="Quyền" />
                <asp:TemplateField HeaderText="Chức năng">
                    <ItemTemplate>
                        <a href='Sua_User.aspx?Username=<%#Eval("Username") %>'>Sửa</a> | 
                     <a href='Xoa_User.aspx?Username=<%#Eval("Username") %>'>Xóa</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        </asp:GridView>
    </div>
</asp:Content>
